const express = require('express');
const router = express.Router()
const { userSubmitEvaluate, getUserEvaluate } = require('../../controller/web/EvaluateController');

// 导入JWT拦截中间件
const checkTokenMiddleware = require('../../middleware/checkTokenMiddleware')

// 用户提交评价信息
router.post('/evaluate/submit', checkTokenMiddleware, userSubmitEvaluate)

// 获取用户评价信息
router.get('/evaluate/:userID', checkTokenMiddleware, getUserEvaluate)

module.exports = router